package com.njuse.jvmfinal.Instruction;

import java.nio.ByteBuffer;

import com.njuse.jvmfinal.runtimestructure.Jframe;

public class F2D extends Instruction {
	public  void readindex(ByteBuffer reader) {
		//pass
	}
	
	public  void execute(Jframe frame) {
		int top=frame.getStacktop();
		Object[] stack=frame.getManagestack();
		int temp=(int) stack[top-1];
		top=top-1;
		float tempp=Float.intBitsToFloat(temp);
		double number=(double) tempp;
		long tempnumber=Double.doubleToLongBits(number);
		stack[top]=(int) tempnumber;
		stack[top+1]=(int)(tempnumber>>32);
		top=top+2;
		frame.setManagestack(stack);
		frame.setStacktop(top);
	}
}
